package com.holyn.guofang.presenter.web;

import com.holyn.guofang.model.webhttp.wo.ServiceTypeWo;
import com.holyn.guofang.model.webhttp.wo.StatusWo;
import com.holyn.guofang.presenter.AbstractBasePresenterImp;
import com.holyn.guofang.presenter.BaseView;

/**
 * Created by Holyn on 2017/7/30.
 */

public class WebContract {

    public static abstract class Presenter extends AbstractBasePresenterImp {
        public Presenter(BaseView baseView) {
            super(baseView);
        }

        public abstract void addWebViewListener(WebContract.WebView webView);

        public abstract void postListServiceType(final int requestAction,
                                                 String code,
                                                 Integer parentID,
                                                 Integer grade);

        public abstract void postAddTradeMarkTrust(final int requestAction,
                                                   Integer id,
                                                   Integer serviceID,
                                                   String content,
                                                   String company,
                                                   String contact,
                                                   String QQ,
                                                   String telephone,
                                                   String email);
    }

    public interface WebView{
        public void responseSuccess(final int requestAction, ServiceTypeWo serviceTypeWo);
        public void responseSuccess(final int requestAction, StatusWo statusWo);
    }
}
